package com.xzx.shop_front_api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import jakarta.persistence.Column;
import lombok.Data;
import org.springframework.stereotype.Component;

/**
 * 商品收藏实体类
 */
@Component
@Data
@TableName("shop_collections")
public class Collection {
    @TableId(type = IdType.AUTO)
    private Long id;
    @Column(name = "goods_id")
    private int goodsId;
    @Column(name = "member_id")
    private int memberId;
    @Column(name = "created_time")
    private int createdTime;
    @TableField(exist = false)
    private String goodsName;
    @TableField(exist = false)
    private double goodsPrice;
    @TableField(exist = false)
    private String goodsImg;

}
